package com.ss.android.crash.log;

import android.os.FileObserver;
import android.text.TextUtils;

public final class a extends FileObserver {
    private final c a;

    public a(c arg3, String arg4) {
        super(arg4, 8);
        if(arg3 != null && !TextUtils.isEmpty(((CharSequence)arg4))) {
            this.a = arg3;
            return;
        }

        throw new IllegalArgumentException("params is not right path is null or ANRManager is null");
    }

    public final void onEvent(int arg5, String arg6) {
        if(arg5 == 8 && !TextUtils.isEmpty(((CharSequence)arg6)) && (arg6.contains("trace")) && this.a != null) {
            this.a.b(200, "/data/anr/" + arg6);
        }
    }
}

